<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Admin\Model;
use Think\Model;
class ClassifyLeanCloudModel extends SyncModel{
    
    protected $tableName="order";
    
    //leancloud表名
    protected $leancloudName = "Order";

    //映射的字段
    protected $_map = array('createdAt'=>'createDate', 'updatedAt'=>'lastupdate'); 
   
    //leancloud 字段类型
    protected $leancloudelds = array(
        "orderid"=>"String",
        "status"=>"Number",
        "createdAt"=>"Date",
        "updatedAt"=>"Date",
        'syncStatus'=>"Number"
    );
   
    //配置字段
    protected $fields = array(
        'orderid', 
        'status',
        'createdAt', 
        'updatedAt', 
        'syncStatus', 
        '_type'=>array(
            'orderid'=>'varchar',
            'status'=>'int',
            'createdAt'=>'int',
            'updatedAt'=>'int',
            'syncStatus'=>'int'
        )
    );
}
